package fwk.siteManager.BO {	

	
	public class TemplateData
	{
		
		public var id:String;
		public var xmlDescription:XML;
		public var cache:Boolean = false;
		
		public var listRessources:Array;
		
		
		public function TemplateData()
		{
			listRessources = new Array();
			
			
		}
		public function init(xml:XML):void
		{
			id = xml.@uiTemplate;
			xmlDescription = xml;
			if (String(xml.@cache[0]) == "true") cache = true;
			
			for (var i:int = 0; i < xml.children().length(); i++) 
			{
				
				var resData:RessourceData = new RessourceData();
				resData.init(  xml.children()[i] );
				
				listRessources.push( resData );
			}
			
		}
				
	}
	
	
}